﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RoadTeam.Enums;
using System.Reflection;
using System.Data;

namespace RoadTeam.SysInterface
{
    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ICsValidateObject _iCsValidateObject = null;

        public static ICsValidateObject CreateCsValidateObject()
        {
            if (_iCsValidateObject == null)
            {
                string className = GlobalConfig.RtSystemPath + ".CS.HomeInspection.TbCsValidateObject_Sys";
                _iCsValidateObject = (ICsValidateObject)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iCsValidateObject;
        }
    }

    public interface ICsValidateObject
    {
        String GetValidateObjectID(String Identifier);

        DataTable GetValidateObjectTable(String OrganID);

        bool UpdateValidateObjectTable(DataTable dt);

        String GetValidateObjectIdentifier(String objectID);

        DataTable GetValidateObjectData(String InID);
    }
}
